<?php

class BaseController extends Controller {

	/**
	 * Setup the layout used by the controller.
	 *
	 * @return void
	 */
    
        protected $data;
        
        protected function setupLayout()
	{
		if ( ! is_null($this->layout))
		{
                        $categories = Category::get();
                        $this->data['categories'] = $categories;
                        $this->data['seo'] = 'My Default Seo';
                        $this->data['title'] = 'Site Title';
                        $this->data['head_title'] = 'Site Title';
                        $this->data['head_description'] = 'Site Title';
			$this->layout = View::make($this->layout)->with($this->data);
		}
	}

}
